#include <iostream>
#include <unistd.h>
#include <signal.h>
#include <sys/types.h>
#include <string>

using namespace std;

void Usage(const string& proc)
{
	cout << "error " << proc << endl;
	cout << "kill failed" << endl;
}

int main(int argc,char* argv[])
{
	if(argc != 3){
		Usage(argv[0]);
	}
	int signo = stoi(argv[1]);
	pid_t pid = stoi(argv[2]);

	kill(pid,signo);

	return 0;
}